package com.ourchem.bus.domain;

import java.util.Date;
import com.fasterxml.jackson.annotation.JsonFormat;
import com.ourchem.common.annotation.Excel;
import com.ourchem.common.core.domain.BaseEntity;
import org.apache.commons.lang3.builder.ToStringBuilder;
import org.apache.commons.lang3.builder.ToStringStyle;

/**
 * ${subTable.functionName}对象 patent_legals
 * 
 * @author xiYan
 * @date 2022-08-09
 */
public class PatentLegals extends BaseEntity
{
    private static final long serialVersionUID = 1L;

    /** $column.columnComment */
    private Long id;

    /** $column.columnComment */
    @Excel(name = "创建人id")
    private Long patentId;

    /** $column.columnComment */
    @JsonFormat(pattern = "yyyy-MM-dd")
    @Excel(name = "创建人id", width = 30, dateFormat = "yyyy-MM-dd")
    private Date legalDate;

    /** $column.columnComment */
    @Excel(name = "创建人id")
    private String legalStatus;

    /** $column.columnComment */
    @Excel(name = "创建人id")
    private String eventStatus;

    public void setId(Long id) 
    {
        this.id = id;
    }

    public Long getId() 
    {
        return id;
    }
    public void setPatentId(Long patentId) 
    {
        this.patentId = patentId;
    }

    public Long getPatentId() 
    {
        return patentId;
    }
    public void setLegalDate(Date legalDate) 
    {
        this.legalDate = legalDate;
    }

    public Date getLegalDate() 
    {
        return legalDate;
    }
    public void setLegalStatus(String legalStatus) 
    {
        this.legalStatus = legalStatus;
    }

    public String getLegalStatus() 
    {
        return legalStatus;
    }
    public void setEventStatus(String eventStatus) 
    {
        this.eventStatus = eventStatus;
    }

    public String getEventStatus() 
    {
        return eventStatus;
    }

    @Override
    public String toString() {
        return new ToStringBuilder(this, ToStringStyle.MULTI_LINE_STYLE)
            .append("id", getId())
            .append("patentId", getPatentId())
            .append("legalDate", getLegalDate())
            .append("legalStatus", getLegalStatus())
            .append("eventStatus", getEventStatus())
            .toString();
    }
}
